<extend name="CommonAdmin:base" />

<block name="script">
<script>
	$(function() {
		$("input:button").button();
	});
	function back() {
		var url = "__URL__/index";
		window.location = url;
	}
</script>
</block>

<block name="main-in">
<div>
<form action="__URL__/save" method="post">
<div><input type="hidden" name="id" value="{$vo.id}" /></div>
<table>
	<tr>
		<td class="required">公司</td>
		<td><select name="company_id">
			<volist name="companyList" id="data">
			<option value="{$data.id}"<if
				condition="$data['id'] eq $vo['company_id']">selected="selected"</if>
			>{$data.company_name}</option>
			</volist>
		</select></td>
	</tr>
	<tr>
		<td class="required">个人姓名</td>
		<td><input type="text" name="name" value="{$vo.name}" /></td>
	</tr>
	<tr>
		<td>个人公司编号</td>
		<td><input type="text" name="cid" value="{$vo.cid}" /></td>
	</tr>
	<tr>
		<td>别名</td>
		<td><input type="text" name="cname" value="{$vo.cname}" /></td>
	</tr>
	<tr>
		<td>用户名</td>
		<td><input type="text" name="username" value="{$vo.username}" />
		</td>
	</tr>
	<tr>
		<td>用户密码</td>
		<td><input type="text" name="password" value="{$vo.password}" />
		</td>
	</tr>
	<tr>
		<td colspan=2 align="right">
		<button type="submit">提交</button>
		<button type="button" onclick="back()">返回</button>
		</td>
	</tr>
</table>
</form>
</div>
</block>